package wy.hanyufang.cn.socket;

import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.util.concurrent.GlobalEventExecutor;

/**
 * 用来处理channel的线程池
 * @author ： wyhanyufang@163.com
 * @time ： 7:54 PM 2021/9/21
 */
public class SimpleChannelHandlerPool {
    public static volatile ChannelGroup channels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);

    public synchronized static int size(){
        return channels.size();
    }
}
